import request from '@/utils/request'

// 查询库存供应商信息列表
export function listSupplierinfo(query) {
  return request({
    url: '/system/supplierinfo/list',
    method: 'get',
    params: query
  })
}

// 查询库存供应商信息详细
export function getSupplierinfo(id) {
  return request({
    url: '/system/supplierinfo/' + id,
    method: 'get'
  })
}

// 新增库存供应商信息
export function addSupplierinfo(data) {
  return request({
    url: '/system/supplierinfo',
    method: 'post',
    data: data
  })
}

// 修改库存供应商信息
export function updateSupplierinfo(data) {
  return request({
    url: '/system/supplierinfo',
    method: 'put',
    data: data
  })
}

// 删除库存供应商信息
export function delSupplierinfo(id) {
  return request({
    url: '/system/supplierinfo/' + id,
    method: 'delete'
  })
}
